<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Creates a new 32-bit integer</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="class.mongoint32.html">« MongoInt32</a></li>
      <li style="float: right;"><a href="mongoint32.tostring.html">MongoInt32::__toString »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.mongoint32.html">MongoInt32</a></li>
    <li>Creates a new 32-bit integer</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="mongoint32.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoInt32::__construct</h1>
  <p class="verinfo">(PECL mongo &gt;= 1.0.9)</p><p class="refpurpose"><span class="refname">MongoInt32::__construct</span> &mdash; <span class="dc-title">Creates a new 32-bit integer</span></p>

 </div>

 <div id="mongoint32.construct-soft-deprecation-notice" class="soft-deprecation-notice">
  <blockquote class="sidebar">
   <p class="para">This extension that defines this class
is deprecated. Instead, the <a href="" class="link">MongoDB</a> extension should be used.
There is no equivalent for this class in the new extension.</p>
   <p class="para">
    Instead, the new extension chooses the appropriate database type depending
    on the integer&#039;s value.
   </p>
  </blockquote>
 </div>

 <div class="refsect1 description" id="refsect1-mongoint32.construct-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>MongoInt32::__construct</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>)</div>

  <p class="para rdfs-comment">
   Creates a new 32-bit number with the given value.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongoint32.construct-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    
     <dt>

      <code class="parameter">value</code>
     </dt>

     <dd>

      <p class="para">
       A number.
      </p>
     </dd>

         
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongoint32.construct-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a new integer.
  </p>
 </div>


</div></div></div></body></html>